home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / tcintf.idl < prev    next >
Encoding:
Text File  |  2006-01-23  |  8.1 KB  |  203 lines

  1. // TCINTF.IDL local interfaces...
  2.  
  3. // Needed for MIDL only...
  4. cpp_quote("#if 0")
  5.     typedef void* hDrawing;
  6.     typedef void* hGraphic;
  7.     typedef void* hViewport;
  8.     typedef void* hExtents;
  9.     typedef void* hApp;
  10.     typedef void* hVertex;
  11. //    typedef int CCommandBarInfo;
  12.     typedef void* LPMENUITEMINFO;
  13. cpp_quote("#endif")
  14.  
  15.     import "oaidl.idl";
  16.     import "gxtypes.idl";
  17.  
  18.     interface ITcDrawing;
  19.  
  20. //    typedef struct PageSetupParams PageSetupParams;
  21.  
  22. ///////////////////////////////////////////////////////////////////////////
  23. // ITcDrawing (local interface)
  24.  
  25.     [
  26.          object
  27.         ,local
  28.         ,uuid(6A481201-E531-11CF-A115-00A024158DAF)
  29.         ,helpcontext(0x12345678)
  30.         ,helpstring("The drawing object.")
  31.         ,pointer_default(unique)
  32.     ]
  33.     interface ITcDrawing : IUnknown
  34.     {
  35.         HRESULT _stdcall Save(LPCTSTR pszPathName, LPCTSTR cszFDesc, BOOL bReplace, BOOL bSelection);
  36.         HRESULT _stdcall Close(BOOL bSaveChanges);
  37.         HRESULT _stdcall Print(BOOL bShowDialog);
  38.         HRESULT _stdcall SetPageSetup(const PAGESETUPPARAMS* pSetup);
  39.         HRESULT _stdcall GetPageSetup(PAGESETUPPARAMS* pSetup);
  40.         HRESULT _stdcall GetRelativeOrigin(hVertex v);
  41.         // SRN 112498
  42.         HRESULT _stdcall CameraUpdateViewport(DWORD GraphicID);
  43.  
  44.         // VV    
  45.         HRESULT _stdcall CreateWindowByCamera(DWORD CameraID);
  46.         HRESULT _stdcall ActivateWindowByCamera(DWORD CameraID);
  47.         // DIM
  48.         HRESULT _stdcall CreateCameraByActiveView();
  49.     
  50.  
  51.         HRESULT _stdcall UpdateRenderViewport(int SceneID);
  52.         HRESULT _stdcall GetSaved(BOOL *pbSaved);
  53.         HRESULT _stdcall SetSaved(BOOL bSaved);
  54.         HRESULT _stdcall RenderScenesGraphicsUpdate(IDispatch *pDisp, ImsiRenderGraphicUpdate flag);
  55.         HRESULT _stdcall RenderScenesUpdateChanges();
  56.         HRESULT _stdcall ActivatePaperSpace(UINT nID);
  57.         HRESULT _stdcall AddNewPaperSpace(LPCSTR PaperSpaceName, int *pID);
  58.     }
  59.  
  60.     [
  61.          object
  62.         ,local
  63.         ,uuid(6A481202-E531-11CF-A115-00A024158DAF)
  64.         ,helpcontext(0x12345678)
  65.         ,helpstring("The TurboCAD built-in View object.")
  66.         ,pointer_default(unique)
  67.     ]
  68.     interface ITcView : IUnknown
  69.     {
  70.         HRESULT _stdcall Refresh();
  71.         HRESULT _stdcall OnRender(UINT nID);
  72.         HRESULT _stdcall RenderFinish(BOOL bWalkFinish, BOOL bWorldChange);
  73.         HRESULT _stdcall OnLayerSetActivate(UINT LrSetID);
  74.     }
  75.  
  76. // TypeLibrary
  77.  
  78.  
  79. [
  80.      uuid(80E6FEE0-4057-11d3-A7D8-00C0DF246524)
  81.     ,version(4.0)
  82.     ,helpcontext(0x12345678)
  83.     ,helpstring("TurboCAD v4.1 Programmable Objects.")
  84. ]
  85. library TCGX
  86. {
  87.     importlib("stdole32.tlb");
  88.  
  89.     typedef enum
  90.     {
  91.          ET_ITEMPROMPT    = 0
  92.         ,ET_FIRST_ID    = 1
  93.         ,ET_COUNT        = 2
  94.         ,ET_FINDEX        = 3
  95.         ,ET_ITEMTOOLTIP    = 4
  96.         ,ET_IMAGE_ID    = 5
  97.         ,ET_COMMANDNAME    = 6
  98.         ,ET_MENUNAME    = 7
  99.         ,ET_ENABLED        = 8
  100.         ,ET_BARNAME        = 9
  101.         ,ET_TINDEX        = 10
  102.         ,ET_TYPE        = 11
  103.         ,ET_STATUS        = 12
  104.         ,ET_COMMANDINTNAME    = 13
  105.     } ETREQUEST;
  106. ///////////////////////////////////////////////////////////////////////////
  107. // ITcApp (local interface)
  108.  
  109.     [object, local, uuid(6A481200-E531-11CF-A115-00A024158DAF),
  110.         helpcontext(0x12345678),
  111.         helpstring("The application (session) object."),
  112.         pointer_default(unique)]
  113.     interface ITcApp : IUnknown
  114.     {
  115.         HRESULT _stdcall GetTcDrawing(hDrawing d, long nDrawing, ITcDrawing** ppTcDrawing, BOOL Activate);
  116.         HRESULT _stdcall SetActiveDrawing(hDrawing d, ITcDrawing** ppTcDrawing);
  117.         HRESULT _stdcall GetActiveDrawing(ITcDrawing** ppTcDrawing);
  118.         HRESULT _stdcall AbortScript();
  119.         HRESULT _stdcall FileOpen(LPCTSTR pszPathName, ITcDrawing** ppTcDrawing);
  120.         HRESULT _stdcall FileNew(LPCTSTR pszTemplate, ITcDrawing** ppTcDrawing);
  121.         HRESULT _stdcall Exit();
  122.         HRESULT _stdcall DragNew(UINT nDraggerKind);
  123.         HRESULT _stdcall DragNextPointDown(UINT DraggerKind, LONG x, LONG y);
  124.         HRESULT _stdcall DragNextPointUp(UINT DraggerKind, LONG x, LONG y);
  125.         HRESULT _stdcall DragReset(UINT nFlags);
  126.         HRESULT _stdcall DragDraw(LONG x, LONG y);
  127.         HRESULT _stdcall DragLocalMenu(UINT nID);
  128.         HRESULT _stdcall DragLocalMenuIndex(int nItem);
  129.         HRESULT _stdcall DragGetLocalMenuSize(int nItem, UINT* pSize);
  130.         HRESULT _stdcall DragOnEnterKey(UINT* pResult);
  131.         HRESULT _stdcall DragOnCtrlEnterKey(UINT* pResult);
  132.         HRESULT _stdcall DragEditFieldChanged(int nField, LPCWSTR str, UINT* pResult);
  133.         HRESULT _stdcall DragEditFieldLock(UINT nField);
  134.         HRESULT _stdcall DragEditFieldUnlock(UINT nField);
  135.         HRESULT _stdcall DragGetAddedGraphic(hGraphic* pg);
  136.         HRESULT _stdcall DragGetKind(UINT *pKind);
  137.         HRESULT _stdcall SetSnapMode(UINT nSnaps);
  138.         HRESULT _stdcall GetSnapMode(UINT* pSnaps);
  139.         HRESULT _stdcall SelectGraphic(hGraphic g, BOOL bAddToSel);
  140.         HRESULT _stdcall GetUserControl(BOOL* userControl);
  141.         HRESULT _stdcall SetUserControl(BOOL userControl);
  142.         HRESULT _stdcall GetVisible(BOOL* visible);
  143.         HRESULT _stdcall SetVisible(BOOL visible);
  144.         HRESULT _stdcall GetToolID(LPCTSTR name, UINT* pToolID);
  145.         HRESULT _stdcall RunTool(UINT nToolID);
  146.         HRESULT _stdcall ToolGetInt(int findex, int sindex, int WhichInt, long* prop);
  147.         HRESULT _stdcall ToolSetInt(int findex, int sindex, int WhichInt, long prop);
  148.         HRESULT _stdcall ToolGetString(int findex, int sindex, int WhichString, long lcid, BSTR* prop);
  149.         HRESULT _stdcall ToolSetString(int findex, int sindex, int WhichString, long lcid, BSTR prop);
  150.         HRESULT _stdcall ToolGetActive(int findex, int sindex, BOOL* prop);
  151.         HRESULT _stdcall ToolActivate(int findex, int sindex);
  152.         HRESULT _stdcall DoPick(int pickType, int* nAction, hDrawing* dPick, hViewport* vpPick,
  153.             hExtents* ePick, long* snapModes);
  154.         HRESULT _stdcall GetCommandBarInfo(COMMANDBARINFO** ppRoot, BOOL* pbDirty);
  155.         HRESULT _stdcall ConnectEvents(IDispatch* EventSink, DWORD EventMask, long* ConnectionID);
  156.         HRESULT _stdcall DisconnectEvents(long ConnectionID);
  157.         HRESULT _stdcall QueryMenu(COMMANDBARINFO* pItem, LPMENUITEMINFO lpmii);
  158.         HRESULT _stdcall ModifyMenu(short what, COMMANDBARINFO** ppItem, LPARAM lParam);
  159.         HRESULT _stdcall OnSelectionChange(BOOL bCreateSelector);
  160.         HRESULT _stdcall OpenCommandBarCfg(LPCTSTR pszFileName, long sections);
  161.         HRESULT _stdcall SaveCommandBarCfg(LPCTSTR pszFileName, long sections);
  162.  
  163.         HRESULT _stdcall OnTurboLISP(BOOL bActivate);
  164.  
  165.         HRESULT _stdcall GoToURL(LPCTSTR pszPath);
  166.         HRESULT _stdcall CloseAll(BOOL *bCancel);
  167.         HRESULT _stdcall Help(long lHelpID);
  168.         HRESULT _stdcall UpdateBlocksView();
  169.         HRESULT _stdcall OnMessageLoop(BOOL* pbContinue, BOOL *pbRes);
  170.  
  171.         HRESULT _stdcall ToolGetPropertyValue    (int findex, int sindex, VARIANT* pvarProp, VARIANT* pvarPropVal);
  172.         HRESULT _stdcall ToolSetPropertyValue    (int findex, int sindex, VARIANT* pvarProp, VARIANT* pvarPropVal);
  173.  
  174.         HRESULT _stdcall ToolGetPropertyType    (int findex, int sindex, VARIANT* pvarProp, WORD* pwPropType);
  175.         HRESULT _stdcall ToolGetPropertyName    (int findex, int sindex, VARIANT* pvarProp, BSTR* bstrPropName);
  176.  
  177.         HRESULT _stdcall ToolGetPropertyState    (int findex, int sindex, VARIANT* pvarProp, DWORD* pdwState);
  178.         HRESULT _stdcall ToolSetPropertyState    (int findex, int sindex, VARIANT* pvarProp, DWORD dwState);
  179.  
  180.         HRESULT _stdcall ToolGetPropertyID        (int findex, int sindex, VARIANT* pvarProp, DWORD* pdwPropID);
  181.         HRESULT _stdcall ToolGetPropertyIndex    (int findex, int sindex, VARIANT* pvarProp, DWORD* pdwIndex);
  182.  
  183.         HRESULT _stdcall ToolGetPropertiesCount    (int findex, int sindex, DWORD* pdwCount);
  184.         HRESULT _stdcall ToolAddProperty        (int findex, int sindex, BSTR bstrPropName, DWORD pdwPropID, VARIANT* pvarVal, DWORD* phProp);
  185.         HRESULT _stdcall ToolRemoveProperty        (int findex, int sindex, VARIANT* pvarProp);
  186.         
  187.         HRESULT _stdcall NextPoint                (hVertex vXYZ, DWORD w);
  188.         HRESULT _stdcall DragLocalMenuEx        (UINT nID, UINT nFlags, hVertex);
  189.         HRESULT _stdcall DragOnEditFieldChanged    (int nField, LPCWSTR str, UINT* pResult);
  190.         HRESULT _stdcall DragOnEditFieldLock    (int nField, BOOL bFlag, UINT* pResult);
  191.         HRESULT _stdcall Drag                    (hVertex vXYZ, DWORD w);
  192.         HRESULT _stdcall DragDblClick            ();
  193.         HRESULT _stdcall DragShiftDown            (UINT nCode);
  194.         HRESULT _stdcall DragShiftUp            (UINT nCode);
  195.         HRESULT _stdcall DragTakeThisChar        (UINT nChar, UINT nRepCnt, UINT nFlags, BOOL bShift);
  196.         HRESULT _stdcall DragCancel                ();
  197.  
  198.         HRESULT _stdcall RemoveBlock            (hDrawing, long, BOOL);
  199.  
  200.         HRESULT _stdcall BRenderIsBreaked        (HWND, MSG);
  201.     }
  202. }
  203.